package com.qf.redisdemo01.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author q
 * @version V1.0
 * @date 2021/12/15
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product implements Serializable{

    private Integer id;
    private String name;
    private Double price;
    @JSONField(format = "yy-MM-dd")
    private Date date;

}
